#ifndef _DB_
#define _DB_
#define NUM 100
typedef struct database{
	struct{
		char name[20];
		char pass[20];
	}user[NUM];

	int num;
}MYDATABASE;
MYDATABASE db;
int database_init(MYDATABASE *database);
int database_insert(MYDATABASE *database, char *name, char *pass);
int database_delete(MYDATABASE *database, char *name, char *pass);
int database_update(MYDATABASE *database, char *name, char *passold, char *passnew);
int database_select(MYDATABASE *database, char *name, char *pass);
int database_show(MYDATABASE *database);
int database_load(MYDATABASE *database, char *filename);
int database_save(MYDATABASE *database, char *filename);
void xxx(char buf[100],int *a,int *b);

#endif

